package com.rem.cloudalibaba.service;


import com.rem.cloudalibaba.entity.Product;

/**
 * @author Rem
 * @date 2021/7/14
 */
public interface OrderService {

    /**
     * 根据商品创建订单
     *
     * @param product
     */
    void createOrder(Product product);

    /**
     * 创建订单
     *
     * @param pid
     * @param num
     * @throws RuntimeException
     */
    void createOrder(Integer pid, Integer num) throws RuntimeException;
}
